To come to (a difficult agreement or settlement) after much arguing and conflict.
Two years after the flood, my lawyer managed to hammer out a settlement with my insurance company over the damages.